﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using BattleNet.DataAccess.Entities;
using BattleNet.DataAccess.Factories;
using BattleNet.DataAccess.Parsers.Html;
using BattleNet.DataAccess.Parsers.Interface;
using Xunit;

namespace BattleNet.DataAccess.UnitTests.Factories
{
    public class ItemFactoryFactoryTests
    {
        [Fact]
        public void TypeRealmFinder_ReturnRealmFinder()
        {
            //var test = RealmFactory<IRealmFinder>.Resolve();
            ItemFactoryFactory factory = new ItemFactoryFactory();
            var rf = factory.GetFactory<IRealmFinder>();
            Assert.NotNull(rf);
        }

        [Fact]
        public void TypeRealm_ReturnRealm()
        {
            //var test = RealmFactory<IRealmFinder>.Resolve();
            ItemFactoryFactory factory = new ItemFactoryFactory();
            var rf = factory.Get<Realm>("Kilrogg");
            Assert.Equal("Kilrogg",rf.Name);
        }
    }
}
